//版权所有：版权所有(C) 2016
//系统名称：
//文件名称：ConstsConfig
//作　　者  
//完成日期：16-01-01
//功能说明：项目全局宏
//----------------------------------------

#ifndef Donson_ConstsConfig_h
#define Donson_ConstsConfig_h

#warning ---- 版本上线时需检查此渠道号 ----
#define kChannelNum             @"App Store"
// 中文版
#define kAppaleID               @""

#define WEAK_OBJECT(Object) __weak typeof(Object) weakObject = Object

// 屏幕相对缩放倍数
#define kScreenScale            (ScreenWidth/375)

#define kSliderSpace            350/2

#define kImpressioncellHeight   80/2

#define kCustomVideoCellViewSpace (14/2 * kScreenScale)

#define LOCAL_VEDIO_ENABLE      0

// 请求签名的
#define kServeroauth            @"Topsun_Lee"

// 微信微博key
#define kWeiXinAppId            @""
#define kWeiBonAppKey           @""
#define kWeiBonAppSecret        @""

// 邮件接收人邮箱
#define kRecipients             @""

// 高德地图APIKey
#define kGaodeMapAPIKey         @""

// 友盟统计
#define kUMAppkey               @""

// 环信所需key -----
#define KNOTIFICATION_LOGINCHANGE @""
#define kEMAPNSCertName         @""
#define kEMAppKey               @"#videoapptest"

#define kEMAPNSCertNameDebug    @""//测试
#define kEMAppKeyDebug          @"#videoapptest"//测试

// 个推的key --- 正式 ---
#define kGeTuiAppID             @""
#define kGeTuiAppKey            @""
#define kGeTuiAppSecret         @""

// 网络请求超时时间
#define kTimeOutSeconds         30

// 最大字数限制
#define kDescriptionMaxCount    30

#define kCommentAnimationTime   0.25

// 文字字体
#define DSFONT                  @"HelveticaNeue-Light"

// 获得特定字号的字体
#define MYHFONT(x)              [UIFont fontWithName:DSFONT size:(x)]

#define SYSFONT(x)              [UIFont fontWithName:@"HelveticaNeue-Light" size:(x)]

#define GETFONT(x)              MYHFONT(x)

//屏幕宽度
#define ScreenWidth             ([UIScreen mainScreen].bounds.size.width)

//屏幕高度
#define ScreenHeight            ([UIScreen mainScreen].bounds.size.height)

// 是否为高清屏
#define isRetina                ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] &&([UIScreen mainScreen].scale == 2.0))

// 当前是否为iPhone4的3.5英寸屏幕
#define isiPhone4               ( [UIScreen mainScreen].bounds.size.height == 480 )

// 是否是iPhone5的4.0英寸屏幕
#define isiPhone5               ( [UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO )

// 是否是iPhone6+的屏幕
#define isiPhone6Later          ( [UIScreen mainScreen].bounds.size.width > (750/2) ? YES : NO )

//判断设备的版本是否是ios7
#define IsiOS7Later             ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 ? YES : NO)

// 获取本地图片的路径
#define GETIMG(name)            [UIImage imagePathed: name]

/***成员属性***/
#define PROPERTY_NONATOMIC        @property (nonatomic)
#define PROPERTY_NONATOMIC_STRONG @property (nonatomic, strong)
#define PROPERTY_NONATOMIC_WEAK   @property (nonatomic, weak)
#define PROPERTY_NONATOMIC_ASSIGN @property (nonatomic, assign)
#define PROPERTY_NONATOMIC_COPY   @property (nonatomic,   copy)

//自定义颜色值
#define ColorWithRGB(r,g,b,alp) ([UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(alp)])

// 提示框停留的时间
#define kAfterDelay             2.0

// 每3天提醒一次
#define kCommentInterval        (7 * 24 * 60 * 60)


// Debug Logging Set to 1 to enable debug logging
#if 1
#define NSLog(x, ...) NSLog(x, ## __VA_ARGS__);
#else
#define NSLog(x, ...)
#endif

#endif


